package com.myworld.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "person")
public class Person  implements Serializable{

    private static final long serialVersionUID = 1L;
    
    @Id
    @Column(name="id")
    private String id;
    @Column(name="name")
    private String name;
    @Column(name="pwd")
    private String pwd;

    public String getId() {

           return id;

    }

    public void setId(String id) {

           this.id =id;

    }

    public String getName() {

           return name;

    }

    public void setName(String name) {

           this.name =name;

    }

    public String getPwd(){

           return pwd;

    }

    public void setPwd(String pwd) {

           this.pwd =pwd;

    }

   

    @Override

    public String toString() {

           return"Person [id=" + id + ",name=" + name + ", pwd=" + pwd + "]";

    }

}
